package whisper.api.gateway.frame.auth.service;


import whisper.api.gateway.frame.auth.domain.Permission;
import whisper.api.gateway.frame.auth.domain.Role;

import java.util.List;

/**
 * Created by JT on 2017/9/25.
 */
public interface PermissionService {


    void insertPermission(Permission permission);

    List<Role> findRolesByPermissionUrl(String url);

    List<Role> findRolesByPermissionUrlAndType(String url, String type);
}
